/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: MENG
 * Date: 2022-06-24
 * Time: 23:11
 */
class Message<T>{
    private T message;

    public T getMessage() {
        return message;
    }

    public void setMessage(T message) {
        this.message = message;
    }
}
public class Test2 {
    public static void main(String[] args) {
        Message<String> message = new Message<>();
        message.setMessage("lalalaal");
        func(message);

        Message<Integer> message1 = new Message<>();
        message1.setMessage(10);
        func(message);
    }


    public static void func(Message<?> tmp){

    }

}